#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	char arr[5] = "asdf";
	int k = 0;
	scanf("%d", &k);
	int i = 0;
	int j = 0;
	for (i = 0; i < k; i++)
	{
		char tmp = arr[0];

		for (j = 0; j < 3; j++)
		{
			arr[j] = arr[j + 1];
		}
		arr[3] = tmp;
	}
	printf("%s\n", arr);
	return 0;
}